﻿@using ST = EmoneyWeiXinCommon.StringTools;
@{
    ViewBag.Title = "Index_Data";
    Layout = null;
    List<EmoneyWeiXinEntity.StockDoctorlogContentEntity1> listStock = ViewBag.queryStockD;
    EmoneyWeiXinEntity.weixinUserEntity weixinuser = ViewBag.weixinuser;
}


@{
    if (listStock != null && listStock.Count > 0)
    {
        for (int i = 0; i < listStock.Count; i++)
        {
            string content = "";
            if (!string.IsNullOrEmpty(listStock[i].CONTENT))
            {
                content = listStock[i].CONTENT;
            }

            if (!string.IsNullOrEmpty(listStock[i].eventkey))
            {
                content = "点击【" + listStock[i].title + "】栏目";
            }

            if (!string.IsNullOrEmpty(listStock[i].PicUrl))
            {
                content = "<img style='width:100px;height:100px;' src='" + listStock[i].PicUrl + "'>";
            }
         
    @Html.Raw(ST.GetXml(listStock[i].result, ViewBag.weixinid, listStock[i].Updatetime.ToString("yyyy-MM-dd HH:mm:ss"), listStock[i].CONTENT));





                                                                                                                                              if (listStock[i].wtype == 1)
                                                                                                                                              {
    <li>
        <span class="manage_batch_left manage_batch_left02">
            <input type="checkbox"></span>
        <div class="manage_batch_center">
            <dl>
                <dt><a href="javascript:void(0);">
                    <img src="@listStock[i].headimgurl"></a></dt>
                <dd>
                    <h4><span>@listStock[i].nickname</span>
                        <a href="javascript:void(0);" class="green">[@(listStock[i].isStock == 1 ? "股票类" : "非股票类")]</a>
                        <a href="javascript:void(0);" class="green">[@(listStock[i].isStock == 1 ? "已回复" : "未回复")]</a>
                        <span>@listStock[i].Updatetime.ToString("yyyy-MM-dd HH:mm:ss")</span>
                    </h4>
                    <p>@content</p>
                </dd>
            </dl>
        </div>
        <div class="manage_batch_right"><a href="@ST.GetTrendsFile("StockDoctorlog/Index_add?weixinid=" + ViewBag.weixinid + "&sid=" + listStock[i].id + "&openid=" + listStock[i].FromUserName)" class="manage_batch_a">回复</a></div>
    </li>
                                                                                                                                              }
        }

    }
}
